﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using VictorBlaga.DocumentManagement.Core.Models;
using System.Web.Mvc;
using VictorBlaga.DocumentManagement.Helpers;

namespace VictorBlaga.DocumentManagement.Models
{
    public class UserViewModel : ViewModelBase
    {
        public string Username { get; set; }
        public string Firstname { get; set; }
        public string Lastname { get; set; }
        public string Email { get; set; }
        public int UserLevel { get; set; }
        public string Password { get; set; }
        public string PasswordConfirm { get; set; }
        public int? WorkshopID { get; set; }
        public Workshop[] Workshops { get; set; }
        public SelectList WorkshopList
        {
            get
            {
                return SelectListHelper.CreateSelectList(Workshops, "ID", "Name");
            }
        }
    }
}